<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
            box-sizing: border-box;
            
        }
        .box{
            height: 100vh;
            display: grid;
            grid-template-columns: 100px 100px 100px;
            grid-template-rows: 100px 100px 100px;
            /* justify-content: center;
            align-content: center; */
        }
        .box-item{
            width: 100%;
            font-size: 40px;
            text-align: center;
            background: pink;
            border: 2px solid red;
        }
        .box1 {
            grid-column: 1 / 3;
        }
        .box2 {
            /* grid-column-start: 3; */
            grid-column: 3/3;
            grid-row: 1 / span 2;
        }
        .box3 {
            grid-row: 2 / span 2;
        }
        .box5 {
            grid-column: 2 / span 2;
        }
    </style>
</head>
<body>
    <h1>grid网格的使用实例</h1>
    <div class="box">
        <div class="box1 box-item">1</div>
        <div class="box2 box-item">2</div>
        <div class="box3 box-item">3</div>
        <div class="box4 box-item">4</div>
        <div class="box5 box-item">5</div>
    </div>
</body>
</html>